import os
from langchain.chat_models import init_chat_model

#  从环境变量中读取DeepSeek的API Key
key = os.getenv("OPENAI_API_KEY")
# print(key)
api_key = str(key)

llm = init_chat_model(
    model="gpt-4o-mini",
    base_url="https://api.zetatechs.com/v1",
    api_key=api_key
)

response = llm.invoke("你好，你是谁？")
print(response)

# 换一个接码平台